home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 117
/
FreelogNo117-OctobreNovembre2013.iso
/
Programmation
/
jedit
/
jedit5.1.0install.exe
/
{app}
/
macros
/
Emacs
/
Emacs_Kill_Sentence.bsh
< prev
next >
Wrap
Text File
|
2013-07-28
|
514b
|
21 lines
/**
* Kill to the end of the current sentence. Emulates the Emacs "kill-sentence"
* command.
*/
source (MiscUtilities.constructPath(dirname(scriptPath), "EmacsUtil.bsh"));
void emacsKillSentence()
{
caret = textArea.getCaretPosition();
eos = findEndOfSentence();
selection = new Selection.Range (caret, eos);
textArea.setSelection (selection);
addToClipboardAndHistory (selection);
textArea.replaceSelection ("");
textArea.removeFromSelection (selection);
}
emacsKillSentence();